package com.trust.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.trust.entity.Medicine;
import com.trust.entity.Param.MedicineListParam;
import com.trust.entity.Param.SupplyListParam;
import com.trust.entity.VO.MedicineListVO;
import com.trust.entity.VO.MedicineVO;
import com.trust.entity.VO.SupplyVO;
import com.trust.entity.result.DropDownResult;


import java.util.List;

/**
 * @author ccc
 * @since 2023-11-10 14:11:07
 */
public interface MedicineService extends IService<Medicine> {



    /**
     * 获取名称
     * @param id
     * @return
     */
    String getNameById(Integer id);

    /**
     * 列表
     * @param param
     * @return
     */
    Page<MedicineListVO> list(MedicineListParam param);

    /**
     * 下拉框
     * @return
     */
    List<DropDownResult> dropDown();

    /**
     * 新增 更新
     * @param param
     */
    Medicine saveAndUpdate(MedicineVO param);


}
